package com.guaju.yueshangLife.widget;

import android.content.Context;
import android.content.res.TypedArray;
import android.databinding.DataBindingUtil;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.FrameLayout;

import com.guaju.yueshangLife.R;
import com.guaju.yueshangLife.databinding.PerOrderGoodsBinding;

public class PerOrderItem extends FrameLayout {

    private LayoutInflater layoutInflater;
    private PerOrderGoodsBinding binding;

    public PerOrderItem(Context context) {
        super(context);
        init();
    }



    public PerOrderItem(Context context,AttributeSet attrs) {
        super(context, attrs);
        init();
        TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.per_order_item);
        boolean aBoolean = ta.getBoolean(R.styleable.per_order_item_refunding_visible, false);
    }

    private void init() {
        layoutInflater = LayoutInflater.from(getContext());
        binding = DataBindingUtil.inflate(layoutInflater, R.layout.per_order_goods,this,false);
        addView(binding.getRoot());
    }
}
